home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 March / CHIP Mart 1997.iso / SurfCam / SURFCAM.Z / FAN11P.M3 < prev    next >
Encoding:
Text File  |  1996-04-01  |  3.8 KB  |  134 lines

  1. name Fanuc 11M with Tool Preselect
  2.  
  3. % 00
  4. / 00
  5. O >4
  6. N >4
  7. G >2
  8. X ->3.>4
  9. Y ->3.>4
  10. Z ->3.>4
  11. A ->3.>4
  12. I ->3.>4
  13. J ->3.>4
  14. K ->3.>4
  15. Q ->3.>4
  16. R ->3.>4
  17. P >40
  18. F >3.1
  19. H >2
  20. D >2
  21. T >2
  22. M >2
  23. S >4
  24.  
  25.  
  26. ModalLetters X Y Z F R                # List of letters that are modal    
  27.  
  28. ModalGs 0 1 2 3 73 74 76 80 81 82 83 84 85  # List of g codes that are modal    
  29.  
  30. Sequence#s N 0 1 1                    # Char, freq, incr & start          
  31. First#? N                             # Y or N  'Output 1st sequence no.  
  32. Last#? N                              # Y or N  'Output last sequence no. 
  33.  
  34. HCode X                               # X or X U  'Horizontal char.       
  35. VCode Y                               # Y or Y V  'Vertical char.         
  36. Dcode Z                               # Depth char.                       
  37. FeedCode F                            # Feed rate char.                   
  38.  
  39. Comment ( )                           # Begin End comment char.           
  40.  
  41. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  42. Coolant 8 9 7                         # On, Off & Mist m codes            
  43. DComp 41 42 40                        # Left, Right & Cancel m codes      
  44. LComp 43 49                           # On & Off codes                    
  45.  
  46. Feed G1                             # Linear move                       
  47. Rapid G0                            # Rapid positioning word            
  48. Cw G2                               # Circular move clockwise           
  49. Ccw G3                              # Circular move counter clockwise   
  50.  
  51. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  52.  
  53. CtrCode I J                           # I J or R or I J K L               
  54. Helical? Y
  55.  
  56. Spaces? N                             # Y or N  'Spaces between words     
  57.  
  58. Incremental? N                        # Y or N  'Inc or abs output        
  59. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  60. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  61.  
  62. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  63.  
  64. Drill                                 # Drilling canned/manual cycle      
  65. G81 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  66. end cancel
  67.  
  68. Peck                                  # Pecking canned/manual cycle       
  69. G83 X[H] Y[V] Z[D] Q[VBite] R[Vclear] F[FRate]
  70. end cancel
  71.  
  72. Tap                                   # Tapping canned/manual cycle       
  73. G84 X[H] Y[V] Z[D] R[Vclear] F[Frate]
  74. end cancel
  75.  
  76. LTap                                  # Left handed tapping cycle         
  77. G74 X[H] Y[V] Z[D] R[Vclear] F[Frate] Q[VBite]
  78. end cancel
  79.  
  80. Ream                                  # Reaming canned/manual cycle       
  81. G85 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  82. end cancel
  83.  
  84. Bore                                  # Boring canned/manual cycle        
  85. G86 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  86. end cancel
  87.  
  88. Back                                  # Back boring canned/manual cycle   
  89. G87 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  90. end cancel
  91.  
  92. Cancel                                # Cancel a canned/manual cycle      
  93. G80
  94. end
  95.  
  96. StartCode                             # Start of the program              
  97. %0
  98. O[Program#]
  99. End
  100.  
  101. 1stToolChange                         # First tool change                 
  102. G90 G80 G40 G17
  103. M[Direct] S[Speed]
  104. G0 G[Work] X[H] Y[V]
  105. G43 Z[D] H[Lcomp]
  106. T[NextTool] M[Cool]
  107. End
  108.  
  109. Infeed                                # Enable cutter comp                
  110. G[Side] X[H] Y[V] D[DComp] F[FRate]
  111. end
  112.  
  113. Outfeed                               # Disable cutter comp               
  114. G1 G40 X[H] Y[V]
  115. end
  116.  
  117. ToolChange                            # Secondary tool changes            
  118. M6
  119. M[Direct] S[Speed]
  120. G0 X[H] Y[V]
  121. G43 Z[D] H[Lcomp]
  122. T[NextTool] M[Cool]
  123. End
  124.  
  125. EndCode                               # End of the program                
  126. G90 G0 G49 Z0
  127. M6 T[Tool1]
  128. X0 Y0
  129. M2
  130. %0
  131. End
  132.  
  133.  
  134.